package com.example.demo.nuoqi.utils;/*
 *author limfff
 *date 2021/4/28
 */

import com.example.demo.nuoqi.pojo.User;
import org.springframework.http.HttpRequest;
import org.springframework.http.server.ServletServerHttpRequest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public  class  UserUtils {

    public static User getUser(HttpSession session) {
        return (User) session.getAttribute("user");
    }

}
